﻿using MediatR;

namespace Digitalmes.Scada.Events;

/// <summary>
/// 扫关键物料事件
/// </summary>
public sealed class AfterScanBarcodeEvent : AbstractAfterEvent, INotification
{
    /// <summary>
    /// 物料码
    /// </summary>
    [NotNull]
    public string? Barcode { get; set; }

    /// <summary>
    /// 上料步序
    /// </summary>
    public int Step { get; set; }

    public AfterScanBarcodeEvent()
    {
        Mode = AfterEventMode.ScanBarcode;
    }
}
